package cn.juque.datapipeline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务组信息</li>
 * </ul>
 * {@code @date} 2023-04-02 14:23:40
 **/
@Data
@TableName(value = "DB_TASK_GROUP_INFO")
public class TaskGroupInfo extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 组名称
     */
    @TableField(value = "GROUP_NAME")
    private String groupName;

    /**
     * 执行类型
     */
    @TableField(value = "EXECUTE_TYPE")
    private Integer executeType;

    /**
     * 执行状态: -1-执行失败；1-待执行；2-执行中；3-执行完成
     */
    @TableField(value = "EXECUTE_STATUS")
    private Integer executeStatus;

    /**
     * cron表达式
     */
    @TableField(value = "CRON")
    private String cron;

    /**
     * 延迟秒数
     */
    @TableField(value = "DELAY_SECONDS")
    private Integer delaySeconds;

    /**
     * 执行IP
     */
    @TableField(value = "EXECUTE_IP")
    private String executeIp;

    /**
     * 执行批次号
     */
    @TableField(value = "EXECUTE_BATCH_NO")
    private String executeBatchNo;

    /**
     * 上次执行时间
     */
    @TableField(value = "LAST_EXECUTE_TIME")
    private Date lastExecuteTime;

    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;

}
